package com.xiaoze.steampy.serviceImpl;

import com.xiaoze.steampy.entity.Game;
import com.xiaoze.steampy.mapper.GameMapper;
import com.xiaoze.steampy.service.GameService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 小泽
 * @since 2022-04-01
 */
@Service
public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements GameService {


    @Autowired
    private GameMapper gameMapper;

    /*
     * 根据用户名获得该用户的所有game信息
     * */
    @Override
    public List<Game> getgameList(Integer sell) {
        return gameMapper.getgameList(sell);
    }
}
